package com.cg.mapper;

import com.cg.entity.Personnel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lhy
 * @since 2024-12-26
 */
@Mapper
public interface PersonnelMapper extends BaseMapper<Personnel> {
    @Select("SELECT COALESCE(MAX(id), 0) FROM personnel")
    Integer selectMaxId();
}
